package admin.Service;

import java.sql.SQLException;

import admin.DAO.ChartDAOImpl;
import admin.DTO.ChartDTO;

public class ChartServiceImpl implements ChartService {
	private ChartDAOImpl caoImpl;
	public ChartServiceImpl(ChartDAOImpl caoImpl){
		super();
		this.caoImpl = caoImpl;
		
	}
	@Override
	public ChartDTO ShowAllChart() throws SQLException {
		return caoImpl.ShowAllChart();
	}
	@Override
	public ChartDTO BadCount() throws SQLException {
		return caoImpl.BadCount();
	}
	@Override
	public ChartDTO GoodCount() throws SQLException {
		return caoImpl.GoodCount();
	}
	@Override
	public ChartDTO ShowAllChartA() throws SQLException {
		return caoImpl.ShowAllChartA();
	}
	@Override
	public ChartDTO BadCountA() throws SQLException {
		return caoImpl.BadCountA();
	}
	@Override
	public ChartDTO GoodCountA() throws SQLException {
		return caoImpl.GoodCountA();
	}

}


